package com.twu.biblioteca;

public class Video implements RentalItem {
    String videoName;
    String director;
    int year;
    int videoID;
    int rating;

    Video(String videoName, String director, int year, int rating) {
        this.videoName = videoName;
        this.director = director;
        this.year = year;
        this.rating = rating;
    }

    public String getDescription() {
        StringBuilder videoDescription = new StringBuilder();
        videoDescription.append(videoID).append("\t\t");
        videoDescription.append(videoName).append("\t\t");
        videoDescription.append(director).append("\t\t");
        videoDescription.append(year).append("\t\t");
        videoDescription.append(rating).append("\n");
        return videoDescription.toString();
    }

    public void setID(int ID) {
        this.videoID = ID;
    }

    public String getName() {
        return videoName;
    }

    public int getID() {
        return videoID;
    }
}